import request from '@/utils/request'

// 查询实时订单列表
export function listRealTime(query) {
    return request({
        url: '/orders/RealTime/list',
        method: 'get',
        params: query
    })
}

// 查询实时订单详细
export function getRealTime(realtimeId) {
    return request({
        url: '/orders/RealTime/' + realtimeId,
        method: 'get'
    })
}

// 新增实时订单
export function addRealTime(data) {
    return request({
        url: '/orders/RealTime',
        method: 'post',
        data: data
    })
}

// 修改实时订单
export function updateRealTime(data) {
    return request({
        url: '/orders/RealTime',
        method: 'put',
        data: data
    })
}

// 删除实时订单
export function delRealTime(realtimeId) {
    return request({
        url: '/orders/RealTime/' + realtimeId,
        method: 'delete'
    })
}
